package com.sljy.hzk.entity;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

/**
 * Created  on 2018/7/10 0010
 *
 * @author 唐开阔
 * @describe 保存到数据库的隐患
 */
@Entity
public class TaskDatabaseEntity {
    @PrimaryKey
    @NonNull
    public int workPlanId;//任务id
    public long userId;//用户id
    public String resultDate;//截止日期
    public String dataJson;//数据的json数据

    public TaskDatabaseEntity(@NonNull int workPlanId, String dataJson, String resultDate,long userId) {
        this.workPlanId = workPlanId;
        this.dataJson = dataJson;
        this.resultDate = resultDate;
        this.userId = userId;
    }

    @NonNull
    public int getWorkPlanId() {
        return workPlanId;
    }

    public void setWorkPlanId(@NonNull int workPlanId) {
        this.workPlanId = workPlanId;
    }

    public String getResultDate() {
        return resultDate;
    }

    public void setResultDate(String resultDate) {
        this.resultDate = resultDate;
    }

    public String getDataJson() {
        return dataJson;
    }

    public void setDataJson(String dataJson) {
        this.dataJson = dataJson;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }
}
